home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickDraw3D 1.6 SDK / Mac SampleCode Previous / Geometry Samples- Mac / BoxPaint+ / headers / BoxPaint_document.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-18  |  2.3 KB  |  96 lines  |  [TEXT/CWIE]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        document.h                                                 **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     To manage a Document                                      **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **     Author:        Michael Bishop                                             **
  10.  **                 Nick Thompson                                             **
  11.  **                 Robert Dierkes                                             **
  12.  **                                                                          **
  13.  **     Copyright (C) 1996-1997 Apple Computer, Inc.  All rights reserved.     **
  14.  **                                                                          **
  15.  **                                                                          **
  16.  *****************************************************************************/
  17.  
  18. #ifndef _BP_DOCUMENT_H_
  19. #define    _BP_DOCUMENT_H_
  20.  
  21. #include    <QuickDraw.h>
  22.  
  23. #include    "QD3D.h"
  24.  
  25. #include    "BoxPaint_texture.h"
  26.  
  27.  
  28. /******************************************************************************
  29.  **                                                                             **
  30.  **                                Structures                                     **
  31.  **                                                                             **
  32.  *****************************************************************************/
  33.  
  34. typedef struct _documentRecord    DocumentRec,
  35.                                 *DocumentPtr,
  36.                                 **DocumentHdl ;
  37.  
  38.  
  39.  
  40. /******************************************************************************
  41.  **                                                                             **
  42.  **                                PUBLIC ROUTINES                                 **
  43.  **                                                                             **
  44.  *****************************************************************************/
  45.  
  46. DocumentHdl    Document_New(
  47.                 void);
  48.     
  49. void        Document_Dispose(
  50.                 DocumentHdl    theDocument);
  51.  
  52. DocumentHdl    Document_GetReference(
  53.                 DocumentHdl    theDocument);
  54.                 
  55. TextureHdl    Document_GetTexture(
  56.                 DocumentHdl    theDocument);
  57.  
  58. TQ3CameraObject    Document_GetCamera(
  59.                 DocumentHdl    theDocument);
  60.  
  61. TQ3Status    Document_GetRendererPreferences(
  62.                 DocumentHdl    theDocument,
  63.                 long        *theVendorID,
  64.                 long        *theEngineID);
  65.     
  66. TQ3Status    Document_SetRendererPreferences(
  67.                 DocumentHdl    theDocument,
  68.                 long        theVendorID,
  69.                 long        theEngineID);
  70.  
  71. TQ3Status    Document_Open(
  72.                 DocumentHdl    theDocument);
  73.     
  74. TQ3Status    Document_Save(
  75.                 DocumentHdl    theDocument);
  76.     
  77. TQ3Status    Document_Draw(
  78.                 DocumentPtr theDocument);
  79.     
  80. TQ3Status    Document_Remap(
  81.                 DocumentHdl theDocument,
  82.                 long        newResolution);
  83.     
  84. TQ3Status    Document_SubmitScene(
  85.                 DocumentPtr    theDocument);
  86.     
  87. void        Document_Rotate(
  88.                 DocumentHdl    theDocument);
  89.     
  90. TQ3Status    Document_DrawOnTexture(
  91.                 DocumentHdl    theDocument);
  92.     
  93. void        Document_Idle(
  94.                 DocumentHdl    theDocument);
  95.                 
  96. #endif